package com.fjec.activity.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fjec.activity.entity.BizExchangeGift;
import com.baomidou.mybatisplus.extension.service.IService;
import com.fjec.common.jxls.ExchangeGiftExcel;
import com.fjec.common.protocol.JsonResult;

import java.time.LocalDate;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 010.兑换礼物表 服务类
 * </p>
 *
 * @author admin
 * @since 2020-12-08
 */
public interface IBizExchangeGiftService extends IService<BizExchangeGift> {

    /**
     * 用户兑换礼物数据保存
     *
     * @param ids
     * @param giftIds
     * @param nums
     * @return
     */
    JsonResult userExchangeGift(String ids, String giftIds, String nums) throws Exception;

    /**
     * 用户兑换礼物数据列表
     *
     * @return
     * @throws Exception
     */
    JsonResult getExchangeGiftList() throws Exception;

    /**
     * 用户兑换礼物数据列表
     *
     * @return
     * @throws Exception
     */
    Map<String, Object> getExchangeGiftPage(Page page, Integer searchBy, String condition, LocalDate startTime, LocalDate endTime) throws Exception;

    /**
     * 根据时间获取当天的用户兑换申请
     *
     * @param localDate
     * @return
     */
    List<ExchangeGiftExcel> getExchangeGiftForExcel(LocalDate localDate);

}
